package net.wangds.auth.user.entity;

import lombok.*;
import lombok.experimental.SuperBuilder;
import net.wangds.auth.module.AbstractAccountRef;
import net.wangds.auth.module.UserValidateStatusEnum;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name="auth_email_user")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EmailUserEntity extends AbstractAccountRef {
    private static final long serialVersionUID = 0;
    @Setter
    @Getter
    private String email;

    @Getter
    @Setter
    @Column()
    @Enumerated
    private UserValidateStatusEnum validateStatus;

    @Getter
    @Setter
    @Column(length=10)
    private String password;


    /**
     * 开始认证时间.
     */
    @Getter
    @Setter
    @Column()
    private long startTm;
    /**
     * 通过时间.
     */
    @Getter
    @Setter
    @Column()
    private long passTm;
}
